import request from '@/utils/request'

// 查询用户信息列表
export function listUser(query) {
  return request({
    url: '/system/registeredUser/listExamine',
    method: 'get',
    params: query
  })
}
export function listUserr(query) {
  return request({
    url: '/system/registeredUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户信息详细
export function getUser(userId) {
  return request({
    url: '/system/registeredUser/' + userId,
    method: 'get'
  })
}

// 新增用户信息
export function addUser(data) {
  return request({
    url: '/system/registeredUser',
    method: 'post',
    data: data
  })
}

// 修改用户信息
export function updateUser(data) {
  return request({
    url: '/system/registeredUser',
    method: 'put',
    data: data
  })
}

// 删除用户信息
export function delUser(userId) {
  return request({
    url: '/system/registeredUser/' + userId,
    method: 'delete'
  })
}
//审核
export function shenheapi(data) {
  return request({
    url: '/system/registeredUser/examine',
    method: 'put',
    data: data
  })
}
// 查询用户信息详细
export function chakaninfo(userId) {
  return request({
    url: '/system/registeredUser/goToExamine/' + userId,
    method: 'get'
  })
}
//封禁用户
export function fengjinapi(data) {
  return request({
    url: '/system/registeredUser/banRegisteredUser',
    method: 'post',
    data: data
  })
}
//解封用户

export function jiefengapi(data) {
  return request({
    url: '/system/registeredUser/liftTheBan',
    method: 'post',
    data: data
  })
}


